﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Drawing;
using Core.Models;
using Core.Infarastructure;
using System.Reflection;
using System.IO;
using StackAttack_WindowsFormApp.Helpers;


namespace StackAttack_WindowsFormApp.DrawLogic
{
    /// <summary>
    /// Provide a logic of drawing stacks
    /// </summary>
    public class StackCreator
    {
        /// <summary>
        /// Drawing a first set of generated stacks
        /// </summary>
        /// <param name="graphics"></param>
        /// <param name="stacks"></param>
        public void FirstInitialize(Graphics graphics, List<Stack> stacks)
        {
            
            Random r = new Random();

            foreach (var currentStack in stacks)
            {
                graphics.DrawImage(Image.FromFile(PathFinder.GetFullPathToFile("Images\\stack2.png")), 
                    currentStack.XPosition, currentStack.YPosition);
                
            }
           
        }

       
    }
}
